<script lang="ts" setup>
import { useAllStore } from '@/stores/index'

const counter = useAllStore()

const change = ()=>{
  counter.incremente()
}
</script>

<template>
  <div style="margin-top:100px">
   <div>{{ counter.counter }}</div>

<button @click="change">改变pinia中的数据</button>
  </div>
</template>

<style scoped></style>
